<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>user list</title>
</head>
<body>
<table border="1">
  <tr>
    <th>姓名</th>
    <th>年龄</th>
    <th>性别</th>
  </tr>
    {% for user in users %}
  <tr>
    <td>{{ user.name }}</td>
    <td>{{ user.age }}</td>
    <td>
        {% if user.sex==1 %}
            男
        {% elif user.sex==0 %}
            女
        {% else %}
            未知
        {% endif %}
    </td>
  </tr>
    {% endfor %}
</table>
</body>
</html>